How to set Python 3 as default interpreter in Linux.
Open terminal and write “alias python=python3” and hit enter.
You are done! Now check your default interpreter version by simply \
run “python -V” command in the terminal.
>>> for i in range(10):
... mult = i * 100
... print(i, mult)
...
0 0
1 100
2 200
3 300
4 400
5 500
6 600
7 700
8 800
9 900